package com.heiliushu.baseWeb.Exception;

public class BusinessException extends CustomizeException{

	private static final long serialVersionUID = 3101041806928865053L;
	
	private String errorKey;
	
	public BusinessException(){}
	
	public BusinessException(String errorKey,String messageKey){
		super(messageKey);
		this.errorKey = errorKey;
	}
	
	public BusinessException(String errorKey, String messsageKye,Throwable e) {
		super(messsageKye, e);
		this.errorKey = errorKey;
	}

	@Override
	public byte buildErrorCode() {
		return ExceptionConstants.ERROR_CODE_BUSINESS_EXCEPTION;
	}

	public String getErrorKey() {
		return errorKey;
	}

	public void setErrorKey(String errorKey) {
		this.errorKey = errorKey;
	}
	
	
}
